#ifndef __MUTEX_H__
#define __MUTEX_H__

#include <windows.h>

class Mutex
{
public:
	Mutex();
	~Mutex();

	void Lock();
	void Unlock();

private:
	HANDLE m_hMutex;
};

class Lock
{
public:
	Lock(Mutex &mutex, bool use);
	~Lock();

private:
	Mutex &m_Mutex;
	bool m_bIsUsed;
};
#endif